﻿using System;
using fastCSharp.code.cSharp;

namespace diantou.dataModel.path
{
    /// <summary>
    /// 公共URL
    /// </summary>
    [fastCSharp.code.cSharp.webView.clientType(Name = "diantou.path", MemberName = null)]
    public sealed class pub
    {
        /// <summary>
        /// 是否重新加载视图
        /// </summary>
        [fastCSharp.code.cSharp.webView.outputAjax]
        public bool ViewOnly;
        /// <summary>
        /// 今日问题
        /// </summary>
        [fastCSharp.code.ignore]
        public string TodayQuestion
        {
            get { return "/today.html"; }
        }
        /// <summary>
        /// OJ所有问题页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string OnlineJudgeAllProblemPath
        {
            get { return problem.List; }
        }
        /// <summary>
        /// 过期问题列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string OnlineJudgeExpiredProblemPath
        {
            get { return problem.ExpiredList; }
        }
        /// <summary>
        /// Judge状态页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string OnlineJudgeStatusPath
        {
            get { return problem.JudgeStatus; }
        }
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.code.ignore]
        public string OnlineJudgeRankPath
        {
            get { return problem.Rank; }
        }
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.code.ignore]
        public string ContestRankPath
        {
            get { return contest.Rank; }
        }
        /// <summary>
        /// 回答为什么会被折叠说明问题
        /// </summary>
        public webView.hashUrl IgnoreAnswerQuestionPath
        {
            get { return new question { Id = 74 }.Index; }
        }
        /// <summary>
        /// 比赛列表页
        /// </summary>
        [fastCSharp.code.ignore]
        public string ContestListPath
        {
            get { return contest.List; }
        }
        /// <summary>
        /// 外部比赛列表页
        /// </summary>
        [fastCSharp.code.ignore]
        public string ExternalContestListPath
        {
            get { return "/contest/externalList.html"; }
        }
        /// <summary>
        /// 外部比赛编辑
        /// </summary>
        [fastCSharp.code.ignore]
        public string ExternalContestEdit
        {
            get { return "/contest/edit.html"; }
        }
        /// <summary>
        /// 教程列表页
        /// </summary>
        [fastCSharp.code.ignore]
        public string TutorialListPath
        {
            get { return tutorial.List; }
        }
        /// <summary>
        /// 企业首页
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseIndex
        {
            get { return "/enterprise/index.html"; }
        }
        /// <summary>
        /// 企业用户未审核
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseLoginError
        {
            get { return "/enterprise/error.html"; }
        }
        /// <summary>
        /// 企业单选题列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseRadioList
        {
            get { return "/enterprise/singleList.html"; }
        }
        /// <summary>
        /// 企业单选题编辑列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseRadioEdit
        {
            get { return "/enterprise/singleEdit.html"; }
        }
        /// <summary>
        /// 企业多选题列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseMultipleChoiceList
        {
            get { return "/enterprise/mutiList.html"; }
        }
        /// <summary>
        /// 企业多选题编辑页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseMultipleChoiceEdit
        {
            get { return "/enterprise/mutiEdit.html"; }
        }
        /// <summary>
        /// 企业问答题列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseQuestionList
        {
            get { return "/enterprise/qaList.html"; }
        }
        /// <summary>
        /// 企业问答题编辑页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseQuestionEdit
        {
            get { return "/enterprise/qaEdit.html"; }
        }
        /// <summary>
        /// 企业编程题列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseProblemList
        {
            get { return "/enterprise/problemList.html"; }
        }
        /// <summary>
        /// 企业编程题列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterprisePrivateProblemList
        {
            get { return "/enterprise/privateProblemList.html"; }
        }
        /// <summary>
        /// 企业考试列表页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseExamList
        {
            get { return "/enterprise/examList.html"; }
        }
        /// <summary>
        /// 企业考试编辑页面
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseExamEdit
        {
            get { return "/enterprise/examDescription.html"; }
        }
        /// <summary>
        /// 企业考试评审人员
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseReviewUserList
        {
            get { return "/enterprise/examinerList.html"; }
        }
        /// <summary>
        /// 企业工作职位列表
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseJobList
        {
            get { return "/enterprise/jobList.html"; }
        }
        /// <summary>
        /// 企业工作职位编辑
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseJobEdit
        {
            get { return "/enterprise/jobEdit.html"; }
        }
        /// <summary>
        /// 邮件及短信模板
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseMailList
        {
            get { return "/enterprise/mailList.html"; }
        }
        /// <summary>
        /// 邮件及短信模板编辑
        /// </summary>
        [fastCSharp.code.ignore]
        public string EnterpriseMailEdit
        {
            get { return "/enterprise/mailEdit.html"; }
        }
        
        /// <summary>
        /// 公共URL
        /// </summary>
        public static readonly pub Default = new pub();
        /// <summary>
        /// 公共URL
        /// </summary>
        public static readonly pub ViewOnlyPath = new pub { ViewOnly = true };
        /// <summary>
        /// 登录首页
        /// </summary>
        public const string Index = "/index.html";
        /// <summary>
        /// 第三方登录失败
        /// </summary>
        public const string LoginError = Index + "#error=1";
        /// <summary>
        /// 第三方登录成功
        /// </summary>
        public const string OpenLogin = Index + "#open=1";
        /// <summary>
        /// 企业登录首页
        /// </summary>
        public const string NewLogin = "/default.html";
        /// <summary>
        /// 企业用户登录
        /// </summary>
        public const string EnterpriseLogin = NewLogin + "#isEnterprise=1";
        /// <summary>
        /// 搜索页面
        /// </summary>
        public const string Search = "/search.html";
        /// <summary>
        /// 404未找到
        /// </summary>
        public const string NotFound404 = "/404.htm";
    }
}
